﻿using FluentScheduler;

namespace Bigway.Common.Jobs;

public interface IBackgroundJob: IAsyncJob
{
    string SystemId { get; }
    string JobName { get; }
    string JobId => GetJobId(SystemId, JobName);
    bool IsRunning { get; }
    void Wait();
    static string GetJobId(string systemId, string jobName) => $"{systemId}:{jobName}";
}